﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace AmiBrokerPlugin
{
    [StructLayoutAttribute(LayoutKind.Sequential, Size = 8)]
    public struct PackedDate
    {
        public int Time;
        public int Date;
    }

    [StructLayoutAttribute(LayoutKind.Explicit, Size = 8)]
    public struct AmiDate
    {
        [FieldOffset(0)]
        public UInt64 Date;

        [FieldOffset(0)]
        public PackedDate PackDate;
    }
}
